<tr>
  <td><%= link_to requirement.title, :controller => :requirement, :action => "show", :id => requirement.id%></td>
  <td><%= requirement.created_at.to_date.to_s%></td>
  <td><%= Retype.find(requirement.retype_id).name%></td>
  <td><%= requirement.click_times%></td>
  <td><%= requirement.comments.length%></td>
  <td><%= requirement.orders.length%></td>
  <td><%= requirement_status(requirement)%></td>
  <td>
  	<%= link_to "编辑", :controller => :requirement, :action => :edit, :id => requirement.id%>
	<%= link_to "删除", {:controller => :requirement,
	 				    :action => :destroy, :id => requirement.id}, 
                        :method => :delete, :confirm => "Are you sure?"%>
  </td>
</tr>